package com.sondon.mayi.fragment;

import org.androidannotations.annotations.AfterViews;
import org.androidannotations.annotations.Click;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.ViewById;

import android.view.View;
import android.widget.LinearLayout;

import com.sondon.mayi.activity.CartActivity_;
import com.sondon.mayi.activity.MyChat_;
import com.sondon.mayi.activity.MyFriendsActivity_;
import com.sondon.mayi.activity.MyOrderActivity_;
import com.sondon.mayi.activity.MyScoreActivity_;
import com.sondon.mayi.activity.MyVoucherActivity_;
import com.sondon.mayi.fruit.R;
import com.sondon.mayi.util.ToastUtils;

@EFragment(R.layout.my)
public class MyFragmentPageOld extends BaseFragment{
	@ViewById
	LinearLayout cart;//购物车
	@ViewById
	LinearLayout my_orders;//我的订单
	@ViewById
	LinearLayout mychat;//我的聊天
	@ViewById
	LinearLayout myfriends;//我的朋友
	@ViewById
	LinearLayout myscore;//我的积分
	@ViewById 
	LinearLayout myvoucher;//我的代金券
	
	@AfterViews
	public void initView(){
		ToastUtils.show(getActivity(), R.string.processing);
	}
	
	@Click({R.id.cart,R.id.my_orders,R.id.mychat,R.id.myfriends
		,R.id.myscore,R.id.myvoucher})
	public void onClick(View v){
		switch (v.getId()) {
		case R.id.cart:
			openActivity(CartActivity_.class);
			break;
		case R.id.my_orders:
			openActivity(MyOrderActivity_.class);
			break;
		case R.id.mychat:
			openActivity(MyChat_.class);
			break;
		case R.id.myfriends:
			openActivity(MyFriendsActivity_.class);
			break;
		case R.id.myvoucher:
			openActivity(MyVoucherActivity_.class);
			break;
		case R.id.myscore:
			openActivity(MyScoreActivity_.class);
			break;

		default:
			break;
		}
	}
	
	
	
	
}